<?php

namespace BaseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * OnlineRemitRecord
 *
 * @ORM\Table(name="online_remit_record", options={"comment":"在线打款记录"})
 * @ORM\Entity()
 */
class OnlineRemitRecord
{
    /**
     *状态
     *
     * @var array
     */
    public static $status_array = array(
        1 => '打款中',
        2 => '打款失败',
        3 => '打款失败'
    );

    /**
     * 打款方式
     *
     * @var array
     */
    public static $type_array = array(
        1 => '支付宝',
        2 => '微信',
        3 => '银联'
    );

    /**
     * 记账类型
     *
     * @var array
     */
    public static $tally_type_array = array(
        1 => '退款',
        2 => '提现',
    );

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var User
     *
     * @ORM\ManyToOne(targetEntity="BaseBundle\Entity\User", inversedBy="id")
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
     */
    private $user;

    /**
     * @var integer
     *
     * @ORM\Column(name="status", type="smallint", options={"comment":"状态  1 打款中  2 打款失败 3 打款成功"})
     */
    private $status;

    /**
     * @var integer
     *
     * @ORM\Column(name="type", type="smallint", options={"comment":"打款方式 1：支付宝 2 WX 3:银联 ..."})
     */
    private $type;

    /**
     * @var integer
     *
     * @ORM\Column(name="tally_type", type="smallint", options={"comment":"记账类型 1:退款 2:提现 ..."})
     */
    private $tally_type;

    /**
     * @var string
     *
     * @ORM\Column(name="order_no", type="string", length=45,  options={"comment":"订单号"})
     */
    private $order_no;

    /**
     * @var string
     *
     * @ORM\Column(name="trade_no", type="string", length=120, nullable=true, options={"comment":"第三方交易号"})
     */
    private $trade_no;

    /**
     * @var string
     *
     * @ORM\Column(name="money", type="decimal", precision=10, scale=2, options={"comment"="金额"})
     */
    private $money;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=45, nullable=true, options={"comment":"收款方名称"})
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="remarks", type="string", length=225, nullable=true, options={"comment":"备注信息"})
     */
    private $remarks;

    /**
     * @var string
     *
     * @ORM\Column(name="error_message", type="string", length=225, nullable=true, options={"comment":"错误信息"})
     */
    private $error_message;

    /**
     * @var string
     *
     * @ORM\Column(name="depict", type="string", length=225, nullable=true, options={"comment":"描述"})
     */
    private $depict;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="payment_time", type="datetime", nullable=true, options={"comment":"打款时间"})
     */
    private $paymentTime;




}
